from flask import Flask
from models import *
from vews.user import user
# from static.config import *
app = Flask(__name__)
app.config.from_pyfile("config.py")
db.init_app(app)
# app.config.from_object(Config)

app.register_blueprint(user)

# @app.before_request
# def before_request():
#     db.create_all()


@app.route('/')
def hello_world():
    return 'Hello World!'


if __name__ == '__main__':
    app.run()
